<?php

class Notification_Controller extends Base_Controller {
	public $restful=true;

	public function get_index(){
		$archive=array();
		foreach (Auth::user()->notification as $notification) {
			$archive[] = Archive::find($notification->archive_id);
		}
		Auth::user()->notification()->delete();
		return View::make("home.notification")->with( "archives",$archive );
	}
}